package com.javasm.adminapi.module.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.javasm.adminapi.module.product.entity.TCategory;

import java.util.List;
import java.util.Map;

/**
 * 商品类型（类目）表(TCategory)表服务接口
 *
 * @author makejava
 * @since 2025-10-14 22:29:06
 */
public interface TCategoryService extends IService<TCategory> {

    PageInfo<TCategory> listAll(Integer pageNum, Integer pageSize);

    List<Map<String, Object>> CategoryByIdlist();

    TCategory getBySecondCategoryId(Long secondCategoryId);

    PageInfo<TCategory> queryCategoryByTBarnd(Integer pageNum, Integer pageSize);

    boolean saveInfo(TCategory tCategory);

    boolean updateByIdinfo(TCategory tCategory);

    Object removeByIdALL(String id);

    TCategory getByName(String categoryName);
}

